import request from "@/utils/request"

// admin/acl/user/1/5  获取用户列表数据
export const getInfoList =(current,page,username)=>{
  return request.get(`/admin/acl/user/${current}/${page}?username=${username}`)
}

// 添加新用户 /admin/acl/user/save
export const saveUser = (params) =>{
  return request.post( `/admin/acl/user/save`,params)
}
// 删除指定用户 admin/acl/user/remove/1647040465187049473
export const deleUser = (id)=>{
  return request.delete(`admin/acl/user/remove/${id}`)
}
// 获取角色列表信息 /admin/acl/user/toAssign/id
export const getUserList =(id)=>{
  return request.get(`/admin/acl/user/toAssign/${id}`)
}
// 用户管理 /admin/acl/user/doAssign?userId=1&roleId=
export const setdoAssign =(userId,roleId)=>{
  return request.post( `/admin/acl/user/doAssign?userId=${userId}&roleId=${roleId}` )
}
